// 导入表格模版数据
export const tempColumns =[
    {
        title: "用户名",
        key: "username"
    },
    {
        title: "密码",
        key: "password"
    },
	{
	    title: "昵称",
	    key: "nickName"
	},
    {
        title: "手机",
        key: "mobile"
    },
    {
        title: "邮箱",
        key: "email"
    },
	 {
	    title: "性别",
	    key: "sex"
	},
	{
	    title: "用户类型",
	    key: "type"
	},
	{
	    title: "角色",
	    key: "defaultRole"
	}
   
];


export const getColumnsKey = (columns,title) => {
    for(let i=0,lenI=columns.length;i<lenI;i++){
        if(columns[i].title==title){
            return columns[i].key;
        }
    }
    return "";
}

export const tempData = [
    {
        username: "【记得删除该说明列】唯一用户名不能为空",
        password: "密码不能为空",
        nickName: "昵称不能为空",
		 mobile: "手机不能为空",
        email: "邮箱不能为空",  
        sex: "性别 女 男",
        type: "用户类型 0(普通用户) 1(管理员)",
        defaultRole: "角色 0(不分配默认角色) 1(分配默认注册用户角色)"
    },
    {
        username: "test2",
        password: "111111",
        nickName: "赵佳斌",
		 mobile: "13789999875",
        email: "jiabin.zhao@highset.cn",
        sex: 1,
        type: 0,
        defaultRole: 1
    }
];

